package com.xja.seckill.service.impl;

import com.xja.seckill.order.domain.mapper.OrderMapper;
import com.xja.seckill.order.domain.model.Order;
import com.xja.seckill.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderServiceImpl implements OrderService {

    @Autowired
    private OrderMapper orderMapper;

    @Override
    public Order selectByOrderId(Integer id) {
        return orderMapper.selectByPrimaryKey (id);
    }
}
